projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eed1234
)
util: add float versions of non optimized TRC functions
author
Øyvind Kolås
<pippin@gimp.org>
Fri, 13 Jan 2017 11:32:10 +0000
(12:32 +0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Fri, 13 Jan 2017 11:32:10 +0000
(12:32 +0100)
babl/base/util.h
patch
|
blob
|
history
diff --git
a/babl/base/util.h
b/babl/base/util.h
index 34725230274738d7b4072792e2aa8ede2f5d1b07..2d346b4bc3d5019604d281f6884a1fdab4e3246e 100644
(file)
--- a/
babl/base/util.h
+++ b/
babl/base/util.h
@@
-105,4
+105,7
@@
babl_gamma_2_2_to_linearf (float value)
#else
#define linear_to_gamma_2_2(value) (pow((value), (1.0F/2.2F)))
#define gamma_2_2_to_linear(value) (pow((value), 2.2F))
+
+ #define babl_linear_to_gamma_2_2f(value) (powf((value), (1.0f/2.2f)))
+ #define babl_gamma_2_2_to_linearf(value) (powf((value), 2.2f))
#endif